<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>海狮玩球效果演示</title>
    <link rel="stylesheet" href="./style.css">
</head>
<body>
<div>
	<canvas style="display: block; inline-size: 100%; max-inline-size: 300px" width="300" height="350"></canvas>
	<button id="btn-skip" title="求个关注呗~" style="cursor: pointer;" disabled >Volley</button>
    <span style="color: grey;">提示：点击上方按钮/按键【SCROLLLOCK】触发</span>
</div>
<script src='./zdog.dist.min.js'></script>
<script  src="./script.js"></script>
<script>
    document.addEventListener("keydown", function(event) {
        console.log("current keyCode："+ event.keyCode);
        // 判断按下的键是否是(FN + SCROLLOCK)/SCROLLOCK
        // 145 : FN + SCROLLOCK
        // 36 : SCROLLOCK
        if(event.keyCode === 145 || event.keyCode === 36) {
            // 执行相应的操作，例如提交表单或执行搜索功能
            document.getElementById("btn-skip").click();
        }
    });
</script>
</body>
</html>